import Vue from 'vue'
import Router from 'vue-router'





Vue.use(Router)

export default new Router({
    mode: 'history',
    scrollBehavior(to, from, savedPosition) {
        return { x: 0, y: 0 }
    },
    routes: [{
        path: '/',
        name: 'index',
        meta: {
            title: '首页'
        },
        component: function (resolve) {
            require(["../components/index.vue"], resolve);
        },
        children: [{
            path: '/',
            name: 'indexbox',
            component: function (resolve) {
                require(["../components/indexbox.vue"], resolve);
            },
        },]
    },
    {
        path: '/index',
        name: 'index',
        meta: {
            title: '首页'
        },
        component: function (resolve) {
            require(["../components/index.vue"], resolve);
        },
        children: [{
            path: '/',
            name: 'indexbox',
            component: function (resolve) {
                require(["../components/indexbox.vue"], resolve);
            },
        },
        {
            path: 'zhuye',
            name: 'indexbox',
            component: function (resolve) {
                require(["../components/indexbox.vue"], resolve);
            },
        },
        {
            path: 'xuexigonggao',
            name: 'xuexigonggao',
            component: function (resolve) {
                require(["../components/xuexigonggao.vue"], resolve);
            },
        },
        {
            path: 'fans',
            name: 'fans',
            component: function (resolve) {
                require(["../components/fans.vue"], resolve);
            },
        },
        {
            path: 'shujufenxi',
            name: 'shujufenxi',
            component: function (resolve) {
                require(["../components/shujufenxi.vue"], resolve);
            },
        },
        {
            path: 'nrguanli',
            name: 'nrguanli',
            component: function (resolve) {
                require(["../components/nrguanli.vue"], resolve);
            },
        },

        {
            path: 'jiesuantixian',
            name: 'jiesuantixian',
            component: function (resolve) {
                require(["../components/jiesuantixian.vue"], resolve);
            },
        },
        {

            path: 'xiugaiziliao',
            name: 'xiugaiziliao',
            component: function (resolve) {
                require(["../components/xiugaiziliao.vue"], resolve);
            },
        },
        {
            path: 'accountSet',
            name: 'zhanghaoshezhi',
            component: function (resolve) {
                require(["../components/zhanghao-shezhi.vue"], resolve);
            },
        },
        {
            path: 'pinglunguanli',
            name: 'pinglunguanli',
            component: function (resolve) {
                require(["../components/pinglunguanli.vue"], resolve);
            },
        },
        {
            path: 'gengduoxx',
            name: 'gengduoxx',
            component: function (resolve) {
                require(["../components/gengduoxx.vue"], resolve);
            },
        },
        {
            path: 'gengduogg',
            name: 'gengduogg',
            component: function (resolve) {
                require(["../components/gengduogg.vue"], resolve);
            },
        },
        {
            path: 'gengduoxxhd',
            name: 'gengduoxxhd',
            component: function (resolve) {
                require(["../components/gengduoxxhd.vue"], resolve);
            },
        },
         {
            path: 'chuangzuoyindao',
            name: 'chuangzuoyindao',
            component: function (resolve) {
                require(["../components/chuangzuoyindao.vue"], resolve);
            },
        },{
            path: 'gg_yd_details',
            name: 'gg_yd_details',
            component: function (resolve) {
                require(["../components/gg_yd_details.vue"], resolve);
            },
        },

       
        ]
    },
    {
        path: '/caogaoxiang',
        name: 'caogaoxiang',
        meta: {
            title: '草稿箱'
        },
        component: function (resolve) {
            require(["../components/caogaoxiang.vue"], resolve);
        }
    }, {
        path: '/fawen',
        name: 'fawen',
        meta: {
            title: '发文'
        },
        component: function (resolve) {
            require(["../components/fawen.vue"], resolve);
        }
    },{
        path: '/fawen2',
        name: 'fawen2',
        meta: {
            title: '发文'
        },
        component: function (resolve) {
            require(["../components/fawen2.vue"], resolve);
        }
    },
    {
        path: '/fawenedit',
        name: 'fawenedit',
        meta: {
            title: '发文编辑'
        },
        component: function (resolve) {
            require(["../components/fawenedit.vue"], resolve);
        }
    },
    {
        path: '/fawenedit2',
        name: 'fawenedit2',
        meta: {
            title: '发文编辑'
        },
        component: function (resolve) {
            require(["../components/fawenedit2.vue"], resolve);
        }
    },
     {
        path: '/login',
        name: 'login',
        meta: {
            title: '登录'
        },
        component: function (resolve) {
            require(["../components/login.vue"], resolve);
        }
    }, {
        path: '/enroll',
        name: 'enroll',
        meta: {
            title: '注册'
        },
        component: function (resolve) {
            require(["../components/enroll.vue"], resolve);
        }
    }, {
        path: '/forgetmima',
        name: 'forgetmima',
        meta: {
            title: '忘记密码'
        },
        component: function (resolve) {
            require(["../components/forgetmima.vue"], resolve);
        }
    },
    {
        path: '/enterxinxi',
        name: 'enterxinxi',
        meta: {
            title: '入驻信息'
        },
        component: function (resolve) {
            require(["../components/enterxinxi.vue"], resolve);
        }
    },
    {
        path: '/shenhezhong',
        name: 'shenhezhong',
        meta: {
            title: '审核中'
        },
        component: function (resolve) {
            require(["../components/shenhezhong.vue"], resolve);
        }
    },


    {
        path: '/fenxiang',
        name: 'fenxiang',
        meta: {
            title: '分享'
        },
        component: function (resolve) {
            require(["../components/fenxiang.vue"], resolve);
        }
    },
    {
        path: '/shengchengtu',
        name: 'shengchengtu',
        meta: {
            title: '图'
        },
        component: function (resolve) {
            require(["../components/shengchengtu.vue"], resolve);
        }
    },
    {
        path: '/yaoqing',
        name: 'yaoqing',
        meta: {
            title: '邀请'
        },
        component: function (resolve) {
            require(["../components/yaoqing.vue"], resolve);
        }
    },
    {
        path: '/pay',
        name: 'pay',
        meta: {
            title: '支付'
        },
        component: function (resolve) {
            require(["../components/pay.vue"], resolve);
        }
    },




    ]
})